FROM openjdk:8-jdk-alpine

MAINTAINER 974689253@qq.com

WORKDIR /

VOLUME ["/app"]

ADD *.jar /app/app.jar

COPY entrypoint_manual.sh /bin/

RUN chmod -Rf 755 /bin/entrypoint_manual.sh

EXPOSE 8080

ARG SPRING_PROFILES_ACTIVE=dev
ENV MY_SPRING_PROFILES_ACTIVE=$SPRING_PROFILES_ACTIVE

# 执行命令
ENTRYPOINT ["entrypoint_manual.sh"]
